<%--
  Created by IntelliJ IDEA.
  User: aaa
  Date: 2024/6/27
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="StudentServlet?action=getScore&taskAccount=${taskAccount}&studentAccount=${studentAccount}" method="post" onsubmit="return getFenshu()">
分数:<input type="number" id="fenshu" name="fenshu"><br>
  <input type="submit" value="确认">
</form>
</body>
<script>
  function  getFenshu(){
    var fenshu=document.getElementById("fenshu").value;
    if(fenshu==null||fenshu.trim()==""){
      alert("请输入分数")
      return false;
    }
    if(fenshu<0||fenshu>100){
      alert("分数不合法")
        return false;
    }
    return true;
  }
</script>
</html>
